<div class="index-main">
  <div class="header-top">
    <div class="sys-name">
    </div>
    <div class="icon-item fr">
      <div class="btn-group select user-btn" uib-dropdown auto-close="outsideClick">
        <div class="user-header" uib-dropdown-toggle>
          <div class="user-pic"></div>
          <span class="filter-option fs-14">{{vm.userName}}</span>
          <span class="iconfont down-icon"
            ng-class="{'icon-fa-angle-up': vm.isDropDown, 'icon-xiala': !vm.isDropDown}"></span>
        </div>
        <div ng-class="{'drop': vm.isDropDown}"
          class="dropdown-menu drop-border-none" uib-dropdown-menu1 role="menu1" aria-labelledby="single-button">
          <div class="arrow-up"></div>
          <ul class="dropdown-menu-list">
            <li class="drop-href" ng-click="vm.changePwd()">
              <a>
                <span class="edit-pwd">修改密码</span>
                <i class="iconfont icon-mima fr edit-pwd-icon"></i>
              </a>
            </li>
            <li class="drop-href" ng-click="vm.logout()">
              <a>
                <span class="edit-pwd">退出</span>
                <i class="iconfont icon-tuichu2 fr edit-pwd-icon"></i>
              </a>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
  <div class="leader-home">
    <div class="top-div">
      <div>
        <leader-top ng-model="vm.param.orgItem"></leader-top>
        <div class="right-div">
          <div class="enter-sys" ui-sref="index.home">
            <i class="icon-stats icon-renyuanguanli iconfont"></i>
            <span>进入系统</span>
          </div>
          <div class="content">
            <div class="content-detail">
              <div class="info1">{{vm.orgPatrolSituation.type == 2 ? '监理' :
              vm.orgPatrolSituation.type == 3 ? '施工' : ''}}</div>
              <div class="info2">
                <div style="font-size:28px;">{{vm.orgPatrolSituation.tenderCode}}</div>
                <div class="l-h-20">{{vm.orgPatrolSituation.name}}</div>
              </div>
            </div>
            <div class="line"></div>
            <div style="height:40px;padding:20px">
              <div class="col-16">
                <img src="../../assets/images/leaderHome/safety.png">
              </div>
              <div class="col-16 title">安全指数</div>
              <div class="col-16 line-height-40" style="color:#24b53e">{{vm.orgPatrolSituation.safetyValue}}</div>
              <div class="col-16">
                <img src="../../assets/images/leaderHome/self_check.png">
              </div>
              <div class="col-16 title">本月自查</div>
              <div class="col-16 line-height-40" style="color:#008bdd">{{vm.orgPatrolSituation.patrolNum}}</div>
            </div>
            <div style="height:40px;padding:20px">
              <div class="col-16">
                <img src="../../assets/images/leaderHome/todos.png">
              </div>
              <div class="col-16 title">待办问题</div>
              <div class="col-16 line-height-40" style="color:#ed8f1e">{{vm.orgPatrolSituation.notDealNum}}</div>
              <div class="col-16">
                <img src="../../assets/images/leaderHome/over_due.png">
              </div>
              <div class="col-16 title">超期问题</div>
              <div class="col-16 line-height-40" style="color:#ff534e">{{vm.orgPatrolSituation.overdueNum}}</div>
            </div>
            <div class="line"></div>
            <div class="check-detail-btn" ng-show="vm.param.orgItem.type == 3" ui-sref="consGroupProfileHome({name: vm.orgPatrolSituation.name, orgId: vm.param.orgItem.id})">查看详情></div>
          </div>
        </div>
      </div>
    </div>
    <div class="bottom-div">
      <div class="col-20 p-r-6">
        <div class="content">
          <div class="l-h-40 text-center">
            <span class="l-h-40 point"></span>
            <span class="l-h-40 v-a-m">整体指数</span>
          </div>
          <div id="leader-home-total-number" style="min-height:180px"></div>
        </div>
      </div>
      <div class="col-20 p-6">
        <div class="content">
          <div class="l-h-40 text-center">
            <span class="l-h-40 point"></span>
            <span class="l-h-40 v-a-m">项目整体进场人员</span>
          </div>
          <div class="l-h-60">
            <i class="icon-stats icon-renyuanguanli iconfont m-w-80 main-color" style="display: inline-block;font-size:40px; line-height: 60px;vertical-align: middle;"></i>
            <span  class="m-w-80 main-color" style="display: inline-block;font-size:30px; line-height: 60px;vertical-align: middle;">{{vm.staffInOut.inNum}}</span>
          </div>
          <div class="l-h-50">
            <span class="m-w-80">本月进场</span>
            <span class="m-w-80 main-color">{{vm.staffInOut.enterNum}}</span>
          </div>
          <div class="l-h-50">
            <span class="m-w-80">本月出场</span>
            <span class="m-w-80 main-color">{{vm.staffInOut.leaveNum}}</span>
          </div>
        </div>
      </div>
      <div class="col-20 p-6">
        <div class="content">
          <div class="l-h-40 text-center">
            <span class="l-h-40 point"></span>
            <span class="l-h-40 v-a-m">项目整体在场设备</span>
          </div>
          <div class="l-h-60">
            <i class="icon-stats icon-jixieshebeijizhaomingb iconfont m-w-80 main-color" style="display: inline-block;font-size:40px; line-height: 60px;vertical-align: middle;"></i>
            <span  class="m-w-80 main-color" style="display: inline-block;font-size:30px; line-height: 60px;vertical-align: middle;">{{vm.deviceInOut.inNum}}</span>
          </div>
          <div class="l-h-50">
            <span class="m-w-80">本月进场</span>
            <span class="m-w-80 main-color">{{vm.deviceInOut.enterNum}}</span>
          </div>
          <div class="l-h-50">
            <span class="m-w-80">本月出场</span>
            <span class="m-w-80 main-color">{{vm.deviceInOut.leaveNum}}</span>
          </div>
        </div>
      </div>
      <div class="col-20 p-6">
        <div class="content">
          <div class="l-h-40 text-center">
            <span class="l-h-40 point"></span>
            <span class="l-h-40 v-a-m">项目问题分类</span>
          </div>
          <div id="leader-home-problem-classify" style="min-height:180px"></div>
        </div>
      </div>
      <div class="col-20 p-l-6">
        <div class="content">
          <div class="l-h-40 text-center">
            <span class="l-h-40 point"></span>
            <span class="l-h-40 v-a-m">项目问题分布</span>
          </div>
          <div class="l-h-60">
            <div class="col-33">
              <img src="../../assets/images/leaderHome/self_check.png">
            </div>
            <div class="col-33 title">问题总数</div>
            <div class="col-33 main-color">{{vm.distributeData.problemNum}}</div>
          </div>
          <div class="l-h-60">
            <div class="col-33">
              <img src="../../assets/images/leaderHome/todos.png">
            </div>
            <div class="col-33 title">待办总数</div>
            <div class="col-33 main-color">{{vm.distributeData.notDealNum}}</div>
          </div>
          <div class="l-h-60">
            <div class="col-33">
              <img src="../../assets/images/leaderHome/over_due.png">
            </div>
            <div class="col-33 title">超期总数</div>
            <div class="col-33 main-color">{{vm.distributeData.overdueNum}}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<!-- 修改密码 -->
<script type="text/ng-template" id="leaderHomePwdDialog">
  <div class="pa-dialog">
    <div class="pa-dialog-header">
      <div class="title-txt">
        <span>修改密码</span>
      </div>
    </div>
    <div class="pa-dialog-content text-center document-dialog-file">
      <form name="editForm" novalidate>
        <!-- <div class="pa-form-control pa-width-100">
          <label class="text-right">登录名：</label>
          <input type="text" name="loginName" class="form-control-input"
            disabled ng-model="$leaderHomePwdDialog.userInfo.loginName">
        </div> -->
        <div class="pa-form-control pa-width-100">
          <label class="text-right"><b>*</b>原始密码：</label>
          <input type="password" name="originalPassword" class="form-control-input"
            ng-model="$leaderHomePwdDialog.userInfo.originalPassword" required>
        </div>
        <div class="pa-form-control pa-width-100">
          <label class="text-right"><b>*</b>新密码：</label>
          <input type="password" name="newPassWord" class="form-control-input"
            ng-model="$leaderHomePwdDialog.userInfo.newPassWord" required>
        </div>
        <div class="pa-form-control pa-width-100">
          <label class="text-right"><b>*</b>确认密码：</label>
          <input type="password" name="confirmPassWord" class="form-control-input"
            ng-model="$leaderHomePwdDialog.userInfo.confirmPassWord" required>
        </div>
      </form>
    </div>
    <div class="pa-dialog-footer text-center">
      <a class="pa-btn" ng-click="$leaderHomePwdDialog.submit(editForm)">
        <span>确定</span>
      </a>
      <a class="pa-btn reset-btn" ng-click="closeThisDialog()">
        <span>取消</span>
      </a>
    </div>
  </div>
</script>